package com.example.hospitalsystem.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@TableName(value="notice")
public class Notice implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value="notice_id", type = IdType.AUTO)
    private int noticeId;

    @TableField("user_name")
    private String userName;

    @TableField("publish_time")
    private Timestamp publishTime;

    @TableField("content")
    private String content;

    @TableField("name")
    private String name;
}
